From: Sam Reed Date: Sun, 13 Mar 2011 19:35:08 +0000 (+0000) Subject: Add missing group by from r83849 per Bryan X-Git-Tag: 1.31.0-rc.0~31450 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=886a70a3f7b25bf5c6ed0359c62ea578100d5264;p=lhc%2Fweb%2Fwiklou.git Add missing group by from r83849 per Bryan --- diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index 12ec64459f..e685e7738f 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -127,6 +127,8 @@ class ApiQueryAllUsers extends ApiQueryBase { $this->addWhere( "rc_log_type IS NULL OR rc_log_type != 'newusers'" ); $timestamp = $db->timestamp( wfTimestamp( TS_UNIX ) - $wgActiveUserDays*24*3600 ); $this->addWhere( "rc_timestamp >= {$db->addQuotes( $timestamp )}" ); + + $this->addOption( 'GROUP BY', 'user_name' ); } $this->addOption( 'LIMIT', $sqlLimit );